﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace TathamOddie.OpenSearchValidator.Logic.Tasks.Rss
{
	public class FindRssSearchInterfaceTask : InterfaceDiscoveryTask
	{
        public FindRssSearchInterfaceTask(string descriptionXml)
            : base("RSS search", "application/rss+xml", descriptionXml)
		{
		}

        protected override void  OnValidateSuccess(ValidationTaskResult result, string interfaceTemplate)
        {
            result.ChildTasks.Add(new RetrieveRssSearchInterfaceTask(interfaceTemplate));
        }
	}
}